package mock.servicesdirectory.organisations.business.businessimpl;

import java.util.List;

import mock.servicesdirectory.common.entities.Directorate;
import mock.servicesdirectory.organisations.business.businessinterface.DirectorateBO;
import mock.servicesdirectory.organisations.dao.daointerface.DirectorateDAO;

public class DirectorateBOImpl implements DirectorateBO {
	
	private DirectorateDAO directorateDAO;
	
	public DirectorateDAO getDirectorateDAO() {
		return directorateDAO;
	}

	public void setDirectorateDAO(DirectorateDAO directorateDAO) {
		this.directorateDAO = directorateDAO;
	}

	// Get all directorate
	@Override
	public List<Directorate> getDirectorate() {
		// TODO Auto-generated method stub
		
		return directorateDAO.getDirectorate();
	}

	// Get directorate of an organisation
	@Override
	public List<Directorate> getDirectorate(int orgid) {
		// TODO Auto-generated method stub
		
		return directorateDAO.getDirectorate(orgid);
	}
	
	// Filter directorate of an organisation with a flag
	public List<Directorate> getDirectorate(int orgid,int flag){
		// Method to get all directorate where name start with a flag
		/*
		 * flag = 1 . Name start with a digit 0-9
		 * flag = 2 . Name start with A, B, C, D ,E
		 * flag = 3 . Name start with F, G, H, I, J
		 * flag = 4 . Name start with K, L, M, N
		 * flag = 5 . Name start with 0, P, Q , R
		 * flag = 6 . Name start with S, T, U , V
		 * flag = 7 . Name start with W, Y, Z
		 */
		return null;
	}
	
}
